package com.community.process._1010.domains;

import com.community.process._1010.common.api.InPage;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * 菜品分类
 */
public class ProcessingCouponTypeDTO {

    /**
     * 需要支持名词模糊查询
     * 分类ID查询
     */
    @Getter
    @Setter
    public static class ProcessingCouponTypeSearch extends InPage {

        @Schema(description = "食材名称")
        private String name;

        @Schema(description = "优惠券金额")
        private String amount;

        @Schema(description = "优惠券类型ID")
        private Long processingCouponTypeId;

        @Schema(description = "第三方token")
        private String token;

        @Schema(description = "Client-Type类型")
        private String clientType;

        @Schema(description = "店铺ID")
        private String shopId;

        @Schema(description = "平台")
        private String platform;
    }

    @Getter
    @Setter
    public static class ProcessingcoupontypeAdd extends ProcessingCouponTypeDTO.IngredientsBase {

    }

    @Getter
    @Setter
    public static class ProcessingcoupontypeUpdate extends ProcessingCouponTypeDTO.IngredientsBase {

    }

    @Getter
    @Setter
    public static class IngredientsBase {
        @Schema(description = "菜品名称")
        @NotBlank(message = "菜品名称不能为空")
        private String name;
    }
}
